package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.ExamDetailView
import tmproject.hlhj.fhp.cartrans.IView.ExamView
import tmproject.hlhj.fhp.cartrans.javaBean.ExamDetailBean
import tmproject.hlhj.fhp.cartrans.javaBean.ExamListBean
import tmproject.hlhj.fhp.cartrans.modules.ExamDetailModule
import tmproject.hlhj.fhp.cartrans.modules.ExamModule

class ExamDetailPresenter:BasePresenter<ExamDetailModule,ExamDetailView>(), ExamDetailModule.OnExamDetailListener {


    override fun gotDetail(examDetailBean: ExamDetailBean) {
        view?.setExamDetail(examDetailBean)
    }
    override fun createModule() {
        module= ExamDetailModule()
        module.listener=this

    }

    fun getExamDetail(c:Context,token:String?,id:Int){
        module.getExamDetail(c,token,id)
    }
}